package org.example.memora.service;

import org.example.memora.common.result.Result;
import org.example.memora.entity.CommunityUser;

import java.util.List;

public interface CommunityUserService {

    CommunityUser getById(Long id);

    List<CommunityUser> getByCommunityId(Long communityId);

    Result<?> joinCommunity(CommunityUser communityUser);

    boolean updateMemberRole(CommunityUser communityUser);

    boolean leaveCommunity(Long communityId, Long userId);
}

